import request from '@/utils/request'

// 查询order列表
export function listForm(query) {
  return request({
    url: '/order/form/list',
    method: 'get',
    params: query
  })
}

// 查询order详细
export function getForm(id) {
  return request({
    url: '/order/form/' + id,
    method: 'get'
  })
}

// 新增order
export function addForm(data) {
  return request({
    url: '/order/form',
    method: 'post',
    data: data
  })
}

// 修改order
export function updateForm(data) {
  return request({
    url: '/order/form',
    method: 'put',
    data: data
  })
}


// 删除order
export function delForm(id) {
  return request({
    url: '/order/form/' + id,
    method: 'delete'
  })
}

  //上传测试
export function zxtest(data) {
  return request({
    method: 'post',
    url: '/zxupload',
    data: data
  })
}

//上传
export function zxupload(data) {
  return request({
    method: 'post',
    url: '/cmecommon/upload',
    data: data
  })
}
